<template>
	<!-- 输入框 -->
	<view class="user-chat-bottom uflex-a-j_fsc">
		<input type="text" v-model="text" placeholder="文明发言" />
		<view class="icon iconfont icon-fabu" @tap="submit"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: ''
			}
		},
		methods:{
			submit() {
				this.$emit('submit', this.text)
				this.text = ''
			}
		}
	}
</script>

<style scoped lang="scss">
	.user-chat-bottom{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		height: 120upx;
		padding: 0upx 20upx;
		width: 100%;
		box-sizing: border-box;
		background-color: #fff;
		border-top: 1upx solid #eee;
		> input{
			flex: 1;
			font-size:40upx;
			margin-right: 20upx;
			padding: 10upx 20upx;
			border-radius: 10upx;
			background-color: #f7f7f7;
		}
		> view{
			width: 80upx;
			font-size: 45upx;
			text-align: center;
		}
	}
</style>
